﻿using LimaLims.Core.Entity.System;
using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace LimaLims.Core.Entity.Basic
{
    /// <summary>
    /// 检验方案项目
    /// </summary>
    [Comment("检验方案项目")]
    public class InspectionData : DEntityTenant
    {
        /// <summary>
        /// 试验项目编号
        /// </summary>
        [Comment("试验项目编号")]
        public string Code { get; set; }

        /// <summary>
        /// 试验项目名称
        /// </summary>
        [Comment("试验项目名称")]
        public string InspectionName { get; set; }

        /// <summary>
        /// 检验方法及要求
        /// </summary>
        [Comment("检验方法及要求"), MaxLength(100)]
        public string Remark { get; set; }

        [Comment("试验项目类别")]
        public InspectionType InspectionType { get; set; }

        /// <summary>
        /// 检验方案Id
        /// </summary>
        [Comment("检验方案Id")]
        public long InspectionSchemeId { get; set; }

        public InspectionScheme InspectionScheme { get; set; }

        /// <summary>
        /// 国标值
        /// </summary>
        [Comment("国标值")]
        public float? NsTargetValue { get; set; }

        /// <summary>
        /// 国标规格下限
        /// </summary>
        [Comment("国标规格下限")]
        public float? NsLowerLimit { get; set; }

        /// <summary>
        /// 国标规格上限
        /// </summary>
        [Comment("国标规格上限")]
        public float? NsUpperLimit { get; set; }

        /// <summary>
        /// 客户设计值
        /// </summary>
        [Comment("客户设计值")]
        public float? SjTargetValue { get; set; }

        /// <summary>
        /// 设计规格下限
        /// </summary>
        [Comment("设计规格下限")]
        public float? SjLowerLimit { get; set; }

        /// <summary>
        /// 设计规格上限
        /// </summary>
        [Comment("设计规格上限")]
        public float? SjUpperLimit { get; set; }

    }
}
